package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.SpuProperty;

public class SpuPropertyWapper {
	SqlManager manage;

	public SpuPropertyWapper() {
		manage = new SqlManager("intpro");
	}
	
	
	
	public SpuProperty selectById(Integer templateId) throws InterruptedException{
		return (SpuProperty) manage.getSelectResults("com.ymttest.database.mapping.SpuPropertyMapper.selectByPrimaryKey", templateId).get(0);
	}
	
	
	public List<SpuProperty> selectByThirdcategoryidId(Integer thirdcategoryid) throws InterruptedException{
		return (List<SpuProperty>) manage.getSelectResults("com.ymttest.database.mapping.SpuPropertyMapper.selectByThirdcategoryidId", thirdcategoryid);
	}
	

	
	
	
	public static void main(String[] args) throws Exception {
		//System.out.println(new YmtProductDescExtraWapper().selectByTemplateId(1).getPicUrls());
		System.out.println(new SpuPropertyWapper().selectByThirdcategoryidId(1123).size());
	
	}
}
